package com.taxi.driver.module.order.setting;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.taxi.driver.R;
import com.taxi.driver.common.BaseActivity;

/**
 * 功能描述：听单设置
 */
public class OrderSettingActivity extends BaseActivity {

    OrderSettingFragment mOrderSettingFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_setting);
        if (mOrderSettingFragment == null)
            addFragment(R.id.fragment_container, OrderSettingFragment.newInstance());
    }

    @Override
    public void onAttachFragment(Fragment fragment) {
        super.onAttachFragment(fragment);
        if (fragment instanceof OrderSettingFragment)
            mOrderSettingFragment = ((OrderSettingFragment) fragment);
    }

}
